import cookies from '@/utils/cookies'
export default {
  namespaced: true,
  state: {
  },

  mutations: {
    SET_INFO (state, data) {
      state.info = data
    }
  },

  actions: {
    // 登录
    Login (context, { username, password }) {
      return new Promise((resolve, reject) => {
        reject(new Error('还没有实现这个功能'))
      })
    },

    // 退出
    LogOut (context) {
      context.commit('SET_INFO', {})
      cookies.remove('token')
    }
  },

  getters: {

  }
}
